﻿using System.Collections.Generic;
using Abp.Domain.Entities;
using DHJ.Messages.Quality;

namespace DHJ.Cost.Quality
{
    public class QcCard : Entity<string>
    {
        public ICollection<KitItem> KitItems { get; set; } = new List<KitItem>();
    }

    public class KitItem : Entity<string>
    {
        /// <summary>
        /// 外键：质控卡Id
        /// </summary>
        public string QcCardId { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public int Sequence { get; set; }

        /// <summary>
        /// 合格证
        /// </summary>
        public string Certificate { get; set; }

        /// <summary>
        /// 图号
        /// </summary>
        public string DrawingNumber { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 配套数量？
        /// </summary>
        public int ItemAmount { get; set; }

        /// <summary>
        /// 齐套数量？
        /// </summary>
        public int DetailAmount { get; set; }

        /// <summary>
        /// 已出库数量
        /// </summary>
        public int StockedOutAmount { get; set; }

        /// <summary>
        /// 配套件分类
        /// </summary>
        public ItemSort ItemSort { get; set; }
    }
}